package com.mk.cloud.common.domain;

import org.beetl.sql.core.annotatoin.AssignID;
import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.annotatoin.SqlStatement;
import org.beetl.sql.core.annotatoin.SqlStatementType;
import org.beetl.sql.core.mapper.BaseMapper;

import java.util.List;

public class GlAreaAgent {

    @AssignID
    private String taid;
    @AssignID
    private String userid;

    public GlAreaAgent(){

    }

    public String getTaid() {
        return taid;
    }

    public void setTaid(String taid) {
        this.taid = taid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public interface Mapper extends BaseMapper<GlAreaAgent>{

        List<String> getSelectedTaids(@Param("userid")String userid);

        @SqlStatement(type= SqlStatementType.DELETE)
        void saveTeamAreaUserid(@Param("teamAreaAreas") List<PTeamAreaArea> teamAreaAreas,@Param("userid")String userid);
    }
}
